# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2022年01月06日
"""
from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor

def fn(name):
	for i in range(1000):
		print(name,i)

if __name__ == '__main__':
	with ThreadPoolExecutor(50) as t :
		for i in range(100):
			t.submit(fn,name=f"线程{i}")

	# 等待线程池中的任务全部执行完毕,才能继续执行

print("123")
